<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="com.maxjay.component.simplelist.model.QueryScheme"%>
<%@page import="com.maxjay.common.util.json.JsonParser"%>
<%@page import="java.util.Map"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="page" uri="/WEB-INF/tlds/page.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>${ queryScheme.name }</title>	
	<%@ include file="/common/common.jsp" %>
	<script type="text/javascript" src="<%= request.getContextPath() %>/js/ext/ux/panel/comp.simplelist.js"></script>
	<script type="text/javascript" src="<%= request.getContextPath() %>/component/simplelist/js/simpleList.js"></script>
	<%
		QueryScheme queryScheme = (QueryScheme)request.getAttribute("queryScheme");
		String listPlugins = queryScheme.getQuerySchemeConfig().getViewConfig().getListPluginScript();
		if(StringUtils.isNotBlank(listPlugins)){
			String[] listPluginArr	= listPlugins.split(",");		
			for(String listPlugin : listPluginArr) {
	%>
	<script type="text/javascript" src="<%= request.getContextPath() %><%= listPlugin %>"></script>
	<%	
			}
		}
	%>
	<script type="text/javascript">
		var queryScheme = Ext.util.JSON.decode('<%= JsonParser.convertObjectToJson(request.getAttribute("queryScheme")) %>');
		var page = Ext.util.JSON.decode('<%= JsonParser.convertObjectToJson(request.getAttribute("page")) %>');
		var paramMap = Ext.util.JSON.decode('<%= JsonParser.convertObjectToJson(request.getAttribute("paramMap")) %>');
	</script>
</head>
<body>
	<div id="grid"></div>
</body>
</html>